<include file="public/header" title="收货地址管理" body="pore_add"/>
<include file="public/header_nav" title="收货地址管理" href="javascript:history.back(-1)"/>
    <!--地址-s-->
    <volist name="lists" id="list">
        <div class="jd_listaddless p">
            <div class="maleri30">
                <if condition="$Request.param.source eq 'cart2'">
                <!--从确认订单页进来-->
                <a href="{:U('/Mobile/Cart/cart2',array('address_id'=>$list['address_id'],'source'=>'cart2','goods_id'=>$Request.param.goods_id,'goods_num'=>$Request.param.goods_num,'item_id'=>$Request.param.item_id,'action'=>$Request.param.action))}">
                    <div class="name fl">
                        <h1>{$list[consignee]}</h1>
                        <if condition="$list[is_default] eq 1">
                            <span>默认</span>
                        </if>
                    </div>
                    <div class="numberaddress fl">
                        <span class="number">电话：{$list[mobile]}</span>
                        <span class="similars">{$region_list[$list['province']]},{$region_list[$list['city']]},{$region_list[$list['district']]},{$region_list[$list['twon']]}{$list['address']}</span>
                    </div>
                </a>
                <!--从确认订单页进来-->
                <elseif condition="$Request.param.source eq 'pre_sell_cart'"/>
                <!--从确认订单页进来-->
                <a href="{:U('/Mobile/Cart/pre_sell_cart',array('address_id'=>$list['address_id'],'act_id'=>$Request.param.act_id,'goods_num'=>$Request.param.goods_num))}">
                    <div class="name fl">
                        <h1>{$list[consignee]}</h1>
                        <if condition="$list[is_default] eq 1">
                            <span>默认</span>
                        </if>
                    </div>
                    <div class="numberaddress fl">
                        <span class="number">电话：{$list[mobile]}</span>
                        <span class="similars">{$region_list[$list['province']]},{$region_list[$list['city']]},{$region_list[$list['district']]},{$region_list[$list['twon']]}{$list['address']}</span>
                    </div>
                </a>
                <!--从确认订单页进来-->
                <elseif condition="$Request.param.source eq 'integral'"/>
                <!--从确认订单页进来-->
                <a href="{:U('/Mobile/Cart/integral',array('address_id'=>$list['address_id'],'goods_id'=>$Request.param.goods_id,'goods_num'=>$Request.param.goods_num,'item_id'=>$Request.param.item_id))}">
                    <div class="name fl">
                        <h1>{$list[consignee]}</h1>
                        <if condition="$list[is_default] eq 1">
                            <span>默认</span>
                        </if>
                    </div>
                    <div class="numberaddress fl">
                        <span class="number">电话：{$list[mobile]}</span>
                        <span class="similars">{$region_list[$list['province']]},{$region_list[$list['city']]},{$region_list[$list['district']]},{$region_list[$list['twon']]}{$list['address']}</span>
                    </div>
                </a>
                <elseif condition="$Request.param.source eq 'team'"/>
                <!--从确认订单页进来-->
                <a href="{:U('/Mobile/Team/order',array('address_id'=>$list['address_id'],'order_id'=>$Request.param.order_id))}">
                    <div class="name fl">
                        <h1>{$list[consignee]}</h1>
                        <if condition="$list[is_default] eq 1">
                            <span>默认</span>
                        </if>
                    </div>
                    <div class="numberaddress fl">
                        <span class="number">电话：{$list[mobile]}</span>
                        <span class="similars">{$region_list[$list['province']]},{$region_list[$list['city']]},{$region_list[$list['district']]},{$region_list[$list['twon']]}{$list['address']}</span>
                    </div>
                </a>
                <else/>
                    <div class="name fl">
                        <h1>{$list[consignee]}</h1>
                        <if condition="$list[is_default] eq 1">
                            <span>默认</span>
                        </if>
                    </div>
                    <div class="numberaddress fl">
                        <span class="number">电话：{$list[mobile]}</span>
                        <span class="similars">{$region_list[$list['province']]},{$region_list[$list['city']]},{$region_list[$list['district']]},{$region_list[$list['twon']]}{$list['address']}</span>
                    </div>
                </if>
                <div class="editdiv fl">
                    <if condition="$Request.param.source eq 'integral'">
                        <a href="{:U('/Mobile/User/edit_address',array('id'=>$list[address_id],'source'=>$Request.param.source,'goods_id'=>$Request.param.goods_id,'goods_num'=>$Request.param.goods_num,'item_id'=>$Request.param.item_id))}">
                            <i class="eedit"></i>
                        </a>
                    <else/>
                        <a href="{:U('/Mobile/User/edit_address',array('id'=>$list[address_id],'source'=>$Request.param.source,'act_id'=>$Request.param.act_id,'goods_num'=>$Request.param.goods_num,'order_id'=>$Request.param.order_id,'goods_id'=>$Request.param.goods_id,'item_id'=>$Request.param.item_id))}">
                            <i class="eedit"></i>
                        </a>
                    </if>
                </div>
            </div>
        </div>
    </volist>
<!--地址-e-->
    <div class="hek">
        <div class="createnew">
            <if condition="$Request.param.action eq 'buy_now'">
                <a href="{:U('/Mobile/User/add_address',array('source'=>$Request.param.source,'action'=>$Request.param.action,'order_id'=>$Request.param.order_id,'goods_id'=>$Request.param.goods_id,'goods_num'=>$Request.param.goods_num,'item_id'=>$Request.param.item_id))}">+新建地址</a>
            <elseif condition="$Request.param.source eq 'integral'">
                <a href="{:U('/Mobile/User/add_address',array('source'=>$Request.param.source,'order_id'=>$Request.param.order_id,'goods_id'=>$Request.param.goods_id,'goods_num'=>$Request.param.goods_num,'item_id'=>$Request.param.item_id))}">+新建地址</a>
            <else/>
                <a href="{:U('/Mobile/User/add_address',array('source'=>$Request.param.source,'act_id'=>$Request.param.act_id,'goods_num'=>$Request.param.goods_num,'order_id'=>$Request.param.order_id))}">+新建地址</a>
            </if>
        </div>
    </div>
</body>
</html>
